package com.nari.ruist.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.nari.ruist.mapper.RstInterfaceMapper;
import com.nari.ruist.domain.RstInterface;
import com.nari.ruist.service.IRstInterfaceService;

/**
 * 接口清单 Service业务层处理
 *
 * @author nari
 * @date 2021-04-02
 */
@Service
public class RstInterfaceServiceImpl implements IRstInterfaceService {
    @Autowired
    private RstInterfaceMapper rstInterfaceMapper;

    /**
     * 查询接口清单
     *
     * @param id 接口清单 ID
     * @return 接口清单
     */
    @Override
    public RstInterface selectRstInterfaceById(String id) {
        return rstInterfaceMapper.selectRstInterfaceById(id);
    }

    /**
     * 查询接口清单 列表
     *
     * @param rstInterface 接口清单
     * @return 接口清单
     */
    @Override
    public List<RstInterface> selectRstInterfaceList(RstInterface rstInterface) {
        return rstInterfaceMapper.selectRstInterfaceList(rstInterface);
    }

    /**
     * 新增接口清单
     *
     * @param rstInterface 接口清单
     * @return 结果
     */
    @Override
    public int insertRstInterface(RstInterface rstInterface) {
        return rstInterfaceMapper.insertRstInterface(rstInterface);
    }

    /**
     * 修改接口清单
     *
     * @param rstInterface 接口清单
     * @return 结果
     */
    @Override
    public int updateRstInterface(RstInterface rstInterface) {
        return rstInterfaceMapper.updateRstInterface(rstInterface);
    }

    /**
     * 批量删除接口清单
     *
     * @param ids 需要删除的接口清单 ID
     * @return 结果
     */
    @Override
    public int deleteRstInterfaceByIds(String[] ids) {
        return rstInterfaceMapper.deleteRstInterfaceByIds(ids);
    }

    /**
     * 删除接口清单 信息
     *
     * @param id 接口清单 ID
     * @return 结果
     */
    @Override
    public int deleteRstInterfaceById(String id) {
        return rstInterfaceMapper.deleteRstInterfaceById(id);
    }
}
